package cn.tedu.medicalpath.inspection.mapper;

import cn.tedu.medicalpath.inspection.pojo.dto.SubInspectionDeleteParam;
import cn.tedu.medicalpath.inspection.pojo.entity.SubInspection;
import cn.tedu.medicalpath.inspection.pojo.vo.UnInspectedItemVO;
import cn.tedu.medicalpath.inspection.pojo.vo.SubInspectionVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SubInspectionMapper {
    List<SubInspectionVO> selectById(Long id);

    String selectNameById(Long inspectionItemId);

    void update(SubInspection subInspection);

    void insert(SubInspection subInspection);

    void delete(SubInspectionDeleteParam subInspectionDeleteParam );

    SubInspectionVO selectOneById(@Param("inspectionItemId") Long inspectionItemId, @Param("inspectionId") Long inspectionId);

    List<UnInspectedItemVO> selectUnInspectedItem
            (@Param("inspectionId") Long inspectionId, @Param("code") String code);
}
